package com.lmabbe.tenant.service.impls;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lmabbe.tenant.mapper.TenantMiniappMapper;
import com.lmabbe.tenant.objects.entity.TenantMiniapp;
import com.lmabbe.tenant.service.TenantMiniappService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lmabbe
 */
@Service
public class TenantMiniappServiceImpl extends ServiceImpl<TenantMiniappMapper, TenantMiniapp>
        implements TenantMiniappService {

    @Override
    public List<TenantMiniapp> findTenantAllMiniApp(String tenantId) {
        return baseMapper.selectList(baseMapper.createQueryWrapper().eq(TenantMiniapp::getTenantId, tenantId));
    }
}
